package main.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import main.dao.MsgDAO;
import main.entity.MessageVO;

@Service("MsgService")
public class MsgService extends BaseService<MessageVO> {

	@Autowired
	private MsgDAO msgDAO;
	
	@SuppressWarnings("unchecked")
	public List<MessageVO> checkNewMsgs(Integer uIDFrom){
		List<MessageVO>messageVOs = (List<MessageVO>)msgDAO.getMsgByUID(uIDFrom);
		return messageVOs;
	}
	
}
